﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Player
{
    public partial class too1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //if (Request.Cookies["Us_Id"] != null)
                //{
                //    this.rpt_wegm.DataSource = BLL.GameManage.SeleGamejoinOrders(Convert.ToInt32(Request.Cookies["Us_Id"].Value));
                //    this.rpt_wegm.DataBind();
                //}
                if (Session["usid"] != null)
                {
                    this.rpt_wegm.DataSource = BLL.GameManage.SeleGamejoinOrders(Convert.ToInt32(Session["usid"]));
                    this.rpt_wegm.DataBind();
                }
                
            }
        }

        //查询
        protected void img_sousuo_Click(object sender, ImageClickEventArgs e)
        {
            //获取输入内容
            string name = this.txt_cxname.Text.Trim();
            Response.Redirect(string.Format("shouye.aspx?gmname={0}", name));
        }
    }
}